#include "App.h"

#include "LoggerImpl.h"
Logger logger;

App::App(int argc, char *argv[]) 
: QApplication(argc, argv, true)
{
    logger.setPath(QCoreApplication::applicationDirPath());
    logger.addn("==  MDB Watcher started ==");
    _mainModule.reset(new MainModule);
}

int App::Run()
{
    _mainModule->Execute();
    return QApplication::exec();
}